package com.yjc.drygoods.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjc.common.utils.PageUtils;
import com.yjc.drygoods.ware.entity.BatchesEntity;
import com.yjc.drygoods.ware.entity.ExchangeDetailEntity;
import com.yjc.drygoods.ware.entity.PurchaseDetailEntity;

import java.util.List;
import java.util.Map;

/**
 * 批次表
 *
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-10-26 21:57:36
 */
public interface BatchesService extends IService<BatchesEntity> {

    PageUtils queryPage(Map<String, Object> params);

    BatchesEntity getSpuBatch(Long spuId);

    void saveOrUpdateBatches(List<PurchaseDetailEntity> purchaseDetailEntities);

    void saveOrUpdateBatchesToEx(List<ExchangeDetailEntity> exchangeDetailEntities);
}

